import 'package:flutter_shop/jpush/jpush_msg_data.dart';

jpushMsgDataFromJson(JpushMsgData data, Map<String, dynamic> json) {
	if (json['id'] != null) {
		data.id = json['id']?.toString();
	}
	if (json['moduleKey'] != null) {
		data.moduleKey = json['moduleKey']?.toString();
	}
	return data;
}

Map<String, dynamic> jpushMsgDataToJson(JpushMsgData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['id'] = entity.id;
	data['moduleKey'] = entity.moduleKey;
	return data;
}